home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / puppy_red.swf / scripts / frame_14 / PlaceObject2_384_567 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Text File  |  2008-03-11  |  858b  |  29 lines

  1. onClipEvent(load){
  2.    function scoreView()
  3.    {
  4.       var s10 = Math.floor(_root.score / 1000000000);
  5.       var s9 = Math.floor(_root.score % 1000000000 / 100000000);
  6.       var s8 = Math.floor(_root.score % 100000000 / 10000000);
  7.       var s7 = Math.floor(_root.score % 10000000 / 1000000);
  8.       var s6 = Math.floor(_root.score % 1000000 / 100000);
  9.       var s5 = Math.floor(_root.score % 100000 / 10000);
  10.       var s4 = Math.floor(_root.score % 10000 / 1000);
  11.       var s3 = Math.floor(_root.score % 1000 / 100);
  12.       var s2 = Math.floor(_root.score % 100 / 10);
  13.       var s1 = Math.floor(_root.score % 10);
  14.       i = 1;
  15.       while(i <= 10)
  16.       {
  17.          this["n" + i].gotoAndStop(eval("s" + i) + 1);
  18.          i++;
  19.       }
  20.    }
  21.    i = 1;
  22.    while(i <= 10)
  23.    {
  24.       this["n" + i].stop();
  25.       i++;
  26.    }
  27.    scoreView();
  28. }
  29.